<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>

<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="list" checkbox="false" fitColumns="true"
  	 title="" actionUrl="labProjectPreviewController.do?datagrid&teachItemId=${teachItemId }" 
  	 idField="id" fit="true" queryMode="group" width="100%">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"></t:dgCol>
   <t:dgCol title="文件名"  field="name"  hidden="false" query="false"  queryMode="single" width="50"></t:dgCol>
   <t:dgCol title="文件类型"  field="fileType"  hidden="false" query="false" queryMode="single" formatterjs="function(v,rec){return v==0? '视频':'文档'}" width="50"></t:dgCol>
   <t:dgCol title="是否必学"  field="isMustLearn"  hidden="false"  queryMode="single" query="false" formatterjs="function(v,rec){return v==0? '否':'是'}" width="50"></t:dgCol>
   <t:dgCol title="操作" field="opt" width="50"></t:dgCol>
   <t:dgFunOpt funname="downloassd(id)" title="下载"></t:dgFunOpt>
  </t:datagrid>
  </div>
 </div>
 <script>
 	function downloassd(id){
 		window.location.href="cms-attach.do?download&ownerId="+id;
 	}
 </script>